<?php $this->load->view('includes/header'); ?>
<div class="container">
    <div class="row">
	   <div class="col-md-9">
		  <h1>Panel de Control <small>Listado de Peliculas</small></h1>
		  <hr>
		  <?php if (isset($error) && $error): ?>
    		  <div class="alert alert-info alert-dismissable">
    			 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
				<?php
				if (isset($msg) && $msg != ' ') {
				    echo $msg;
				}
				?>
    		  </div>

		  <?php endif ?>
		  <table class="table table-bordered table-hover tablesorter">
                <thead>
				<tr>
				    <th>Codigo <i class="fa fa-sort"></i></th>
				    <th>Nombre <i class="fa fa-sort"></i></th>
				    <th>Pais <i class="fa fa-sort"></i></th>
				    <th>Operaciones</th>
				</tr>   
                </thead>
                <tbody>
				<?php foreach ($artistas as $value): ?>
                        <tr>
    				    <td><?php echo $value['cod_asociacion']; ?></td>
    				    <td><?php echo $value['nombre']; ?></td>
    				    <td><?php echo $value['cod_pais']; ?></td>
    				    <td>
    					   <a href="/artistas/insert/<?php echo $value['cod_asociacion']; ?>/" title="Editar artista"><i class="fa fa-pencil"></i></a>
    					   <a href="/artistas/eliminar/<?php echo $value['cod_asociacion']; ?>/" title="Eliminar artista"><i class="fa fa-trash-o"></i></a>
    				    </td>
                        </tr>
				<?php endforeach; ?>
                </tbody>
		  </table>
	   </div>
    </div>
</div>
<?php $this->load->view('includes/footer'); ?>